﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.App.Application.Dto.Input;
using Traceability.App.Application.Dto.Output;
using Traceability.App.Domain.Model;

namespace Traceability.App.Application
{
    public class AutoMapperFile:Profile
    {
        public AutoMapperFile()
        {
            CreateMap<AddProductInput, TraceabilityModel>();
            CreateMap<UpdateProductInput, TraceabilityModel>();
            CreateMap<TraceabilityModel, ProductOutput>();
            CreateMap<TraceabilityModel, TraceOutput>();
            CreateMap<UpdateCultivationInput, CultivationModel>();
            CreateMap<HealthInput, HealthModel>();
            CreateMap<UpdateHealthInput, HealthModel>();
            CreateMap<CultivationInput, Cultivation_TableModel>();
            CreateMap<SlaughteInput, SlaughterModel>();
            CreateMap<Slaughter_TableInput, Slaughter_TableModel>();
            CreateMap<SlaughterhouseInput, SlaughterhouseModel>();
            CreateMap<SlaughterhouseTableInput, SlaughterhouseModel>();
            CreateMap<SupplierInput, SupplierModel>();
            CreateMap<SupplierModel, SupplierOutput>();
        }
    }
}
